package com.yunfeng.aolin.service;

import java.util.List;

import org.springframework.data.jpa.domain.Specification;

import com.yunfeng.aolin.entity.Supplier;
import com.yunfeng.common.util.Page;

public interface SupplierService {
	Supplier get(Long id);

	void saveOrUpdate(Supplier supplier);

	void delete(Long id);

	List<Supplier> findAll();

	List<Supplier> findAll(Page page);

	List<Supplier> findByName(Page page, String name);

	List<Supplier> findByExample(Specification<Supplier> specification,
			Page page);
}
